export interface ButtonConfig {
  name: string;
  visable: boolean;
  setVisable?: () => void;
  enabled: boolean;
  setEnabled?: () => void;
  fn?: Function;
  childrens?: ButtonConfig[];
}

export interface ButtonGroupConfig {
  buttonGroup: ButtonConfig[];
  visable: boolean;
}

export enum EditState {
  Empty,
  Creating,
  View,
  Editing,
  Appoving,
  Appoved,
}

export enum DocumentStatus {
  Open = 1,
  Waiting = 2,
  Approved = 4,
}
